import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Home from './views/home';
import List from './views/List/index';
import Chart from './views/Chart/index';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter, HashRouter, Route } from 'react-router-dom';
ReactDOM.render(
    <HashRouter>
        <div>
            <Route path="/list" component={List}></Route>
            <Route path="/chart" component={Chart}></Route>
        </div>
    </HashRouter>
    , document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
